package org.zty.common;


import java.io.Serializable;


public class BasePage implements Serializable {
	private static final long serialVersionUID = -7973335486408759980L;
	private int pageSize=10;
	private int totalSize=0;
	private int pageIndex=1;
	private String order="";
	private String where="";
	public String getOrder() {
		return order;
	}
	public void setOrder(String order) {
		this.order = order;
	}
	public int getNextPageIndex(){
		return pageIndex*pageSize;
	}
	public int getPageIndex() {
		return pageIndex;
	}
	public int getSkipSize()
	{
		return (pageIndex-1)*pageSize;
	}
	public int getOracleSkipSize()
	{
		return pageIndex*pageSize;
	}
	public int getOracleNextPageIndex()
	{
		return (pageIndex+1)*pageSize;
	}
	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getTotalSize() {
		return totalSize;
	}
	public void setTotalSize(int totalSize) {
		this.totalSize = totalSize;
	}
	public String getWhere() {
		return where;
	}
	public void setWhere(String where) {
		this.where = where;
	}
}
